package com.hhit.zhgd.utils

import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest

@SpringBootTest
internal class RedisUtilTest {
    @Autowired
    private val redisUtil = RedisUtil()

    @Test
    fun allTest() {
        redisUtil["name"] = "buobao"
        redisUtil.expire("name",3)
        println(redisUtil["name"])
        Thread.sleep(3000)
        println(redisUtil["name"])
    }
}